// test user request api
const http = uni.$u.http;
// 发送私聊 
export function PrivateMsgSend(params){
	return http.post('/api/v6/PrivateMsg/send', params)
}

// 撤回 
export function PrivateWithdraw(params){
	return http.post('/api/v6/PrivateMsg/withdraw', params)
}
//删除双方消息
export function delMutualMsg(params){
	return http.post('/api/v6/PrivateMsg/delMutualMsg', params)
}
//删除双方消息
export function diceRollsSend(params){
	return http.post('/api/v6/DiceRolls/send', params)
}

//发红包
export function redPacketSend(params){
	return http.post('/api/v6/RedPacket/send', params)
}
//抢红包
export function redPacketGrab(params){
	return http.post('/api/v6/RedPacket/grab', params)
}
//红包详情
export function redPacketInfo(params){
	return http.post('/api/v6/RedPacket/info', params,{
		custom:{
			ShowLoading: true,
			LoadingText:getApp().$t("zp.loadingMore.loading")
		}
	})
}
//红包详情
export function redPacketList(params){
	return http.post('/api/v6/RedPacket/list', params)
}




// 消息回执 
export function PrivateReceipt(params){
	return http.post('/api/v6/PrivateMsg/receipt', params)
}


// 消息删除
export function PrivateDelmsg(params){
	return http.post('/api/v6/PrivateMsg/delmsg', params)
}

// 获取私聊置顶消息
export function getPrivateTopMsg(params){
	return http.post('/api/v6/PrivateMsg/getTopMsg', params)
}
// 置顶消息
export function topPrivateMsg(params){
	return http.post('/api/v6/PrivateMsg/topMsg', params)
}
// 获取好友离线
export function PrivateMessageOffline(params){
	return http.get('/api/v6/PrivateMsg/messageList', {params,custom:{
		requestError: false
	}})
}
//私聊消息编辑
export function privateMsgEdit(params){
	return http.post('/api/v6/PrivateMsg/edit', params)
}


// 发送群聊 
export function GroupMsgSend(params){
	return http.post('/api/v6/GroupMsg/send', params)
}
// 撤回 
export function GroupWithdraw(params){
	return http.post('/api/v6/GroupMsg/withdraw', params)
}

// 消息回执 
export function GroupReceipt(params){
	return http.post('/api/v6/GroupMsg/receipt', params)
}
// 置顶群消息
export function topGroupMsg(params){
	return http.post('/api/v6/GroupMsg/topMsg', params)
}
// 获取群聊置顶消息
export function getGroupTopMsg(params){
	return http.post('/api/v6/GroupMsg/getTopMsg', params)
}

// 消息删除
export function GroupDelmsg(params){
	return http.post('/api/v6/GroupMsg/delmsg', params)
}
// 获取群离线
export function groupMessageOffline(params){
	return http.get('/api/v6/GroupMsg/groupMessageList', {params,custom:{
		requestError: false
	}})
}
//消息审核
export function GroupAuditing(params){
	return http.post('/api/v6/GroupMsg/auditing', params)
}
//消息收到回执
export function received_receipt(params){
	return http.post('/api/v6/PrivateMsg/received_receipt', params)
}
//群消息收到回执
export function group_received_receipt(params){
	return http.post('/api/v6/GroupMsg/received_receipt', params)
}
//群消息编辑
export function groupMsgEdit(params){
	return http.post('/api/v6/GroupMsg/edit', params)
}





